package com.osfw.system.entity.manage;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 角色和菜单关联 sys_role_menu
 */
@Data
@Accessors(chain = true)
public class SysRoleMenu {
    /* 角色ID */
    @TableField(value = "role_id_")
    private Long roleId;

    /* 菜单ID */
    @TableField(value = "menu_id_")
    private Long menuId;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("roleId", getRoleId())
                .append("menuId", getMenuId())
                .toString();
    }
}
